package com.newer.dao.mapper.sys;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.newer.dao.bean.sys.Role;
import com.newer.dao.bean.sys.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserRoleMapper extends BaseMapper<UserRole> {
    @Override
    Integer insert(UserRole record);

    int insertSelective(UserRole record);

    List<UserRole> selectUserRoles(String userId);

    List<Role> selectRolesExits(Page<Role> page, @Param("userId") String userId, @Param("roleName") String roleName);
}